package com.net.base;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

/***
 * 基础的Http响应实体
 * 
 * @author Administrator
 *
 * @param <T>
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class BaseResponse <T>{
	
	
	/**
	 * 接口版本
	 */
	private String version;
	/**
	 * 请求响应码
	 */
	private int resultCode;
	
	/**
	 * 操作是否成功
	 */
	private boolean isSuccess;
	
	/**
	 * 封装的响应数据
	 */
	private T body;
	
	/**
	 * 响应信息
	 */
	private String message;
	
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public T getBody() {
		return body;
	}
	public void setBody(T body) {
		this.body = body;
	}
	public int getResultCode() {
		return resultCode;
	}
	public void setResultCode(int resultCode) {
		this.resultCode = resultCode;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public boolean isSuccess() {
		return isSuccess;
	}
	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}
	
	
}
